package demo1;

public class Dog extends Animal{

    public Dog(int age, String name) {
        super(age, name);
    }

    public void bark(){
        System.out.println(this.name + "在狗叫");
    }
    @Override
    public Dog eat(){
        System.out.println(this.name + "在吃狗粮");
        return null;
    }
}
